/*
package org.jeecg.codegenerate;

import com.aliyun.dysmsapi20170525.Client;
import com.aliyun.dysmsapi20170525.models.SendSmsRequest;
import com.aliyun.dysmsapi20170525.models.SendSmsResponse;
import com.aliyun.teaopenapi.models.Config;

public class test {
    public static void main(String[] args){


        public class SendSmsExample {
            public static void main(String[] args) {
                // 创建客户端
                Config config = new Config()
                        .setAccessKeyId("yourAccessKeyId")
                        .setAccessKeySecret("yourAccessKeySecret");
                config.endpoint = "dysmsapi.aliyuncs.com";
                Client client = new Client(config);

                // 创建发送短信请求
                SendSmsRequest sendSmsRequest = new SendSmsRequest()
                        .setPhoneNumbers("13888888888") // 要发送短信的手机号码
                        .setSignName("yourSignName") // 已经在阿里云上申请的短信签名
                        .setTemplateCode("yourTemplateCode") // 已经在阿里云上申请的短信模板CODE
                        .setTemplateParam("{\"code\":\"123456\"}"); // 短信模板的变量参数

                try {
                    // 发送短信
                    SendSmsResponse sendSmsResponse = client.sendSms(sendSmsRequest);
                    System.out.println(sendSmsResponse.body.toString());
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
*/
